import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('rank')
export class rank extends Component {
    start() {

    }

    update(deltaTime: number) {
        
    }

    onLoad(){
        /**
         * 向开放数据域发送消息
         */
        window['wx'].getOpenDataContext().postMessage({
            value: 'rankData',
        });
    }

    
    onclick(event,customEventData){
        this.node.removeFromParent();
    }
}

